In [9]:
import matplotlib.pyplot as plt
%matplotlib inline

In [1]:
from heroespy.util import times

In [1]:
data_dir = '/Users/schriste/Desktop/HEROES_flares'

In [2]:
import glob

In [3]:
filelist = glob.glob(data_dir + '/ssw_cutout_20130921_19*AIA_94_.fts')

In [4]:
filelist


Out[4]:
['/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190002_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190014_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190026_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190038_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190050_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190102_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190114_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190126_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190138_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190150_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190202_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190214_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190226_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190238_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190250_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190302_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190314_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190326_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190338_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190350_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190402_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190414_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190426_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190438_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190450_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190502_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190514_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190526_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190538_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190550_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190602_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190614_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190626_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190638_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190650_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190702_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190714_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190726_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190738_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190750_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190802_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190814_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190826_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190838_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190850_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190902_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190914_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190926_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190938_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_190950_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191002_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191014_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191026_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191038_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191050_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191102_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191114_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191126_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191138_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191150_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191202_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191214_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191226_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191238_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191250_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191302_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191314_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191326_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191338_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191350_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191402_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191414_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191426_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191438_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191450_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191502_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191514_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191526_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191538_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191550_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191602_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191614_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191626_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191638_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191650_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191702_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191714_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191726_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191738_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191750_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191802_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191814_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191826_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191838_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191850_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191902_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191914_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191926_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191938_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_191950_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192002_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192014_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192026_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192038_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192050_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192102_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192114_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192126_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192138_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192150_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192202_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192214_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192226_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192238_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192250_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192302_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192314_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192326_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192338_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192350_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192402_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192414_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192426_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192438_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192450_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192502_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192514_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192526_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192538_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192550_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192602_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192614_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192626_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192638_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192650_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192702_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192714_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192726_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192738_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192750_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192802_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192814_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192826_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192838_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192850_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192902_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192914_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192926_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192938_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_192950_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193002_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193014_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193026_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193038_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193050_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193102_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193114_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193126_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193138_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193150_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193202_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193214_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193226_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193238_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193250_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193302_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193314_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193326_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193338_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193350_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193402_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193414_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193426_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193438_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193450_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193502_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193514_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193526_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193538_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193550_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193602_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193614_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193626_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193638_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193650_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193702_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193714_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193726_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193738_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193750_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193802_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193814_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193826_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193838_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193850_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193902_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193914_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193926_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193938_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_193950_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194002_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194014_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194026_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194038_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194050_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194102_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194114_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194126_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194138_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194150_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194202_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194214_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194226_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194238_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194250_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194302_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194314_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194326_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194338_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194350_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194402_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194414_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194426_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194438_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194450_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194502_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194514_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194526_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194538_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194550_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194602_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194614_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194626_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194638_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194650_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194702_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194714_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194726_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194738_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194750_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194802_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194814_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194826_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194838_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194850_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194902_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194914_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194926_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194938_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_194950_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195002_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195014_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195026_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195038_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195050_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195102_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195114_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195126_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195138_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195150_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195202_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195214_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195226_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195238_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195250_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195302_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195314_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195326_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195338_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195350_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195402_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195414_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195426_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195438_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195450_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195502_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195514_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195526_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195538_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195550_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195602_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195614_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195626_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195638_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195650_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195702_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195714_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195726_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195738_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195750_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195802_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195814_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195826_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195838_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195850_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195902_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195914_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195926_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195938_AIA_94_.fts',
 '/Users/schriste/Desktop/HEROES_flares/ssw_cutout_20130921_195950_AIA_94_.fts']

In [8]:
import sunpy.map

In [9]:
cubemap = sunpy.map.Map(filelist, cube=True)

In [10]:
cubemap.peek()


Out[10]:
<sunpy.visualization.mapcubeanimator.MapCubeAnimator at 0x1084b6210>

Querying the HEK


In [2]:
from sunpy.net import hek

In [3]:
client = hek.HEKClient()

In [20]:
t = hek.attrs.Time(times.solarobs_target2[0], times.solarobs_target2[1])
et = et = hek.attrs.EventType('FL')
events = client.query(t, et)

In [21]:
len(events)


Out[21]:
3

In [22]:
events[0]


Out[22]:
{u'SOL_standard': u'SOL2013-09-21T17:17:10L025C080',
 u'active': u'true',
 u'ar_compactnesscls': u'',
 u'ar_mcintoshcls': u'',
 u'ar_mtwilsoncls': u'',
 u'ar_noaaclass': u'',
 u'ar_noaanum': None,
 u'ar_numspots': None,
 u'ar_penumbracls': u'',
 u'ar_polarity': None,
 u'ar_zurichcls': u'',
 u'area_atdiskcenter': None,
 u'area_atdiskcenteruncert': None,
 u'area_raw': None,
 u'area_uncert': None,
 u'area_unit': u'',
 u'bound_ccnsteps': None,
 u'bound_ccstartc1': None,
 u'bound_ccstartc2': None,
 u'bound_chaincode': u'',
 u'boundbox_c1ll': -844.8,
 u'boundbox_c1ur': -768,
 u'boundbox_c2ll': 76.8,
 u'boundbox_c2ur': 153.6,
 u'chaincodetype': u'',
 u'comment_count': u'0',
 u'concept': u'Flare ',
 u'event_avg_rating': None,
 u'event_c1error': 2,
 u'event_c2error': 2,
 u'event_clippedspatial': u'',
 u'event_clippedtemporal': u'',
 u'event_coord1': -806.4,
 u'event_coord2': 115.2,
 u'event_coord3': None,
 u'event_coordsys': u'UTC-HPC-TOPO',
 u'event_coordunit': u'arcseconds',
 u'event_description': u'',
 u'event_endtime': u'2013-09-21T17:20:58',
 u'event_expires': u'',
 u'event_importance': None,
 u'event_importance_num_ratings': u'',
 u'event_mapurl': u'',
 u'event_maskurl': u'',
 u'event_npixels': None,
 u'event_peaktime': u'2013-09-21T17:17:58',
 u'event_pixelunit': u'',
 u'event_probability': None,
 u'event_starttime': u'2013-09-21T17:17:10',
 u'event_testflag': u'false',
 u'event_title': u'',
 u'event_type': u'FL',
 u'eventtype': u'9',
 u'fl_efoldtime': None,
 u'fl_efoldtimeunit': u'',
 u'fl_fluence': None,
 u'fl_fluenceunit': u'',
 u'fl_goescls': u'',
 u'fl_peakem': None,
 u'fl_peakemunit': u'',
 u'fl_peakflux': 43.8445,
 u'fl_peakfluxunit': u'erg/cm/cm/s',
 u'fl_peaktemp': None,
 u'fl_peaktempunit': u'',
 u'frm_contact': u'Paolo C. Grigis - pgrigis@cfa.harvard.edu',
 u'frm_daterun': u'2013-09-21T10:35:13',
 u'frm_humanflag': u'false',
 u'frm_identifier': u'Feature Finding Team',
 u'frm_institute': u'SAO',
 u'frm_name': u'Flare Detective - Trigger Module',
 u'frm_paramset': u'DerivativeThreshold= 8.00000e-02 EndFraction= 2.50000e-01',
 u'frm_specificid': u'',
 u'frm_url': u'http://www.cfa.harvard.edu',
 u'frm_versionnumber': 0.51,
 u'gs_galleryid': u'',
 u'gs_imageurl': u'http://sdowww.lmsal.com/sdomedia/ssw/media/ssw/ssw_client/data/ssw_service_130924_051005_49356/www/ssw_cutout_131_context_full.gif',
 u'gs_movieurl': u'http://sdowww.lmsal.com/sdomedia/h264/2013/09/21/EDS_FlareDetective-TriggerModule_20130921T171322-20130921T172446_AIA_131_XCEN-806.4YCEN115.2.mov',
 u'gs_thumburl': u'http://sdowww.lmsal.com/sdomedia/ssw/media/ssw/ssw_client/data/ssw_service_130924_051005_49356/www/ssw_cutout_131_context_thumb.gif',
 u'hcr_checked': u'true',
 u'hgc_bbox': u'POLYGON((21.837063 7.858273,30.571859 8.76931,29.315434 13.293466,20.210731 12.336901,21.837063 7.858273))',
 u'hgc_boundcc': u'',
 u'hgc_coord': u'POINT(25.84782 10.608079)',
 u'hgc_x': 25.84782,
 u'hgc_y': 10.608079,
 u'hgs_bbox': u'POLYGON((-62.891457 7.858273,-54.156661 8.76931,-55.413086 13.293466,-64.517789 12.336901,-62.891457 7.858273))',
 u'hgs_boundcc': u'',
 u'hgs_coord': u'POINT(-58.8807 10.608079)',
 u'hgs_x': -58.8807,
 u'hgs_y': 10.608079,
 u'hpc_bbox': u'POLYGON((-844.8 76.8,-768 76.8,-768 153.6,-844.8 153.6,-844.8 76.8))',
 u'hpc_boundcc': u'',
 u'hpc_coord': u'POINT(-806.4 115.2)',
 u'hpc_x': -806.4,
 u'hpc_y': 115.2,
 u'hrc_a': 81.869897645844,
 u'hrc_bbox': u'POLYGON((0.887335 84.805571,0.807362 84.289407,0.819265 78.690068,0.898179 79.695154,0.887335 84.805571))',
 u'hrc_boundcc': u'',
 u'hrc_coord': u'POINT(0.852087065446741 81.869897645844)',
 u'hrc_r': 0.852087065446741,
 u'intenskurt': None,
 u'intensmax': None,
 u'intensmean': None,
 u'intensmedian': None,
 u'intensmin': None,
 u'intensskew': None,
 u'intenstotal': None,
 u'intensunit': u'',
 u'intensvar': None,
 u'kb_archivdate': u'2013-09-21T17:38:22',
 u'kb_archivid': u'ivo://helio-informatics.org/FL_FlareDetective-TriggerModule_20130921_173621_2013-09-21T17:17:10.070_1',
 u'kb_archivist': u'flare_detective',
 u'obs_channelid': u'131',
 u'obs_dataprepurl': u'',
 u'obs_firstprocessingdate': u'',
 u'obs_includesnrt': u'',
 u'obs_instrument': u'AIA',
 u'obs_lastprocessingdate': u'',
 u'obs_levelnum': None,
 u'obs_meanwavel': 1.31e-06,
 u'obs_observatory': u'SDO',
 u'obs_title': u'',
 u'obs_wavelunit': u'cm',
 u'rasterscan': u'',
 u'rasterscantype': u'',
 u'refs': [{u'ref_name': u'SSW Context Thumbnail',
   u'ref_type': u'thumbnail',
   u'ref_url': u'http://sdowww.lmsal.com/sdomedia/ssw/media/ssw/ssw_client/data/ssw_service_130924_051005_49356/www/ssw_cutout_131_context_thumb.gif'},
  {u'ref_name': u'SSW Context Image',
   u'ref_type': u'image',
   u'ref_url': u'http://sdowww.lmsal.com/sdomedia/ssw/media/ssw/ssw_client/data/ssw_service_130924_051005_49356/www/ssw_cutout_131_context_full.gif'},
  {u'ref_name': u'SDO Movie',
   u'ref_type': u'movie',
   u'ref_url': u'http://sdowww.lmsal.com/sdomedia/h264/2013/09/21/EDS_FlareDetective-TriggerModule_20130921T171322-20130921T172446_AIA_131_XCEN-806.4YCEN115.2.mov'},
  {u'ref_name': u'FRM_URL',
   u'ref_type': u'unknown',
   u'ref_url': u'http://www.cfa.harvard.edu'}],
 u'refs_orig': u'',
 u'revision': u'2',
 u'skel_chaincode': u'',
 u'skel_curvature': None,
 u'skel_nsteps': None,
 u'skel_startc1': None,
 u'skel_startc2': None}

In [8]:
result[0].get('event_coord1')


Out[8]:
-806.4

In [29]:
fig = plt.figure()
ax = fig.add_subplot(111, aspect='equal')
ax.plot([0,1],[0,1])
circle1=plt.Circle((0,0),980,fill=False, color='black')
ax.add_artist(circle1)
plt.ylim(0,1000)
plt.xlim(-1000,0)
for event in events:
    ax.plot([event.get('event_coord1')], [event.get('event_coord2')], 'o', label=event.get('SOL_standard'))
    print(event.get('SOL_standard'), [event.get('event_coord1')], [event.get('event_coord2')])
    print(event.get('event_starttime'), event.get('event_endtime'), event.get('event_peaktime'))
plt.legend()
plt.show()


(u'SOL2013-09-21T17:17:10L025C080', [-806.4], [115.2])
(u'2013-09-21T17:17:10', u'2013-09-21T17:20:58', u'2013-09-21T17:17:58')
(u'SOL2013-09-21T19:34:46L024C080', [-806.4], [115.2])
(u'2013-09-21T19:34:46', u'2013-09-21T19:47:58', u'2013-09-21T19:42:58')
(u'SOL2013-09-21T21:34:58L054C109', [-422.4], [-422.4])
(u'2013-09-21T21:34:58', u'2013-09-21T21:37:46', u'2013-09-21T21:35:34')

In [ ]: